---
layout: default
---

<!-- Borrowed a lot from: https://github.com/mashirozx/Sakura/ -->

<!-- Page Header -->
{% include intro-header.html type='page' short=true %}

{%- include utils/get-assets-baseurl.html -%}
{%- assign _assets_baseurl = __return -%}

<div class="links-page container">
  <div class="link-list">
    {% assign _default_img = "/img/links/default.jpg" | prepend: _assets_baseurl %}

    {% if page.links %}
      {% for group in page.links %}
        <h2 class="section-title" id="{{ group.type | downcase | split: ' ' | join: '-'}}">{{group.type}}</h2>
        <ul>
          {% for item in group.items %}
            <li>
              <a href="{{ item.url }}" target="_blank">
                {% if item.img %}
                  {% assign _img = item.img | prepend: _assets_baseurl %}
                {% else %}
                  {% assign _img = _default_img %}
                {% endif %}
                <img src="{{ _img }}">
                <span class="sitename">{{item.sitename}}</span>
                <div class="desc">{{item.desc}}</div>
              </a>
            </li>
          {% endfor %}
        </ul>
      {% endfor %}
    {% endif %}

    <hr style="visibility: hidden;">

    {% if site.comment.provider and page.comment %}
      {% include comments.html %}
    {% endif %}
  </div>

  <!-- Side Catalog Container -->
  {% if page.catalog %}
    {% include catalog.html %}
  {% endif %}
</div>
